import { applyMiddleware, createStore } from 'redux'
import reducer from './reducer'
import reduxSaga from 'redux-saga'
import watchSaga from './saga'
const reduxsaga = reduxSaga()
const store = createStore(reducer, applyMiddleware(reduxsaga))
// saga任务
reduxsaga.run(watchSaga)
export default store